from openai import OpenAI

client = OpenAI(api_key="sk-f6387ebf28d447a7aa6cb6cb0c4526fc", base_url="https://api.deepseek.com")

prompt = "Translate the following English text to French: 'Hello, how are you?' "

completion = client.chat.completions.create(
    model="deepseek-reasoner",
    messages=[
        {"role": "system", "content": "you are a helpful assistant"},
        {"role": "user", "content": prompt},
    ]
)
content = completion.choices[0].message.content
print(content)